package com.jerei.crm.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class Customer implements Serializable {
    private static final long serialVersionUID = 5860637225674240161L;

    private Integer id;
    private Integer uid;
    private String name;
    private String sex;
    private String tel;
    private Date birthday;
    private String company;
    private String position;
    private String qq;
    private String wx;
    private Integer linkuid;
    private String addr;
    private String hobby;
    private String marrystatus;
    private String intention;
    private String status;
    private Date time;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Customer customer = (Customer) o;
        return id.equals(customer.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getWx() {
        return wx;
    }

    public void setWx(String wx) {
        this.wx = wx;
    }

    public Integer getLinkuid() {
        return linkuid;
    }

    public void setLinkuid(Integer linkuid) {
        this.linkuid = linkuid;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public String getMarrystatus() {
        return marrystatus;
    }

    public void setMarrystatus(String marrystatus) {
        this.marrystatus = marrystatus;
    }

    public String getIntention() {
        return intention;
    }

    public void setIntention(String intention) {
        this.intention = intention;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", uid=" + uid +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", tel='" + tel + '\'' +
                ", birthday=" + birthday +
                ", company='" + company + '\'' +
                ", position='" + position + '\'' +
                ", qq='" + qq + '\'' +
                ", wx='" + wx + '\'' +
                ", linkuid=" + linkuid +
                ", addr='" + addr + '\'' +
                ", hobby='" + hobby + '\'' +
                ", marrystatus='" + marrystatus + '\'' +
                ", intention='" + intention + '\'' +
                ", status='" + status + '\'' +
                ", time=" + time +
                '}';
    }
}
